package dao;

import java.util.ArrayList;

import javax.swing.JTable;

import entity.Student;

//运用DAO模式，数据访问的实现机制加以封装,与数据的使用代码相分离。
public interface StudentDao {
	public boolean save(Student student);

	public boolean saveInDB(Student student);

	public ArrayList<Student> getAllStudent();

	public boolean deleteByIndex(int index);

	public ArrayList<Student> searchStudents(String searchKey,
			String searchValue);

	public boolean deleteStudent(String stuNo);

	public Student modifyFindStudent(String stuNo);

	public boolean modifyInTable(int index, String[] content, String num);

	public boolean modifySaveInDB(Student student, String stuNo);

	public String[] convertStudentToStringArr(Student student);

}
